<?php

class passionweiss_scraper extends BlogScraper
{
    function __construct()
    {
        parent::__construct('passionweiss');
    }

}


class passionweiss_post_scraper extends PostScraper
{

    function getDate($post)
    {
        $text = $this->url;  
        $parts = explode('/', $text);
        var_dump($parts);
        $year = $parts[3];
        $month = $parts[4];
        $day = $parts[5];

        $date = date('Y-m-d', strtotime($month.'/'.$day.'/'.$year));
        echo $date;
        return $date;
    }     
    
    function prepareTrack($track)
    {
        $track['name'] = $this->removeQuotes(trim($track['name']));
        $track['song'] = $this->removeQuotes(trim($track['song']));
        
        return $track;
    }
}

?>